const express = require('express');
const router = express.Router();

// 根API端点，提供API信息
router.get('/', (req, res) => {
  res.json({
    status: 'success',
    message: '欢迎使用API服务',
    version: '1.0.0',
    endpoints: {
      users: '/api/users',
      products: '/api/products',
      health: '/health'
    },
    documentation: '请查看API文档了解更多详情'
  });
});

module.exports = router;